/*
 * Copyright © 2015 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import "./variables.scss";

@mixin placeholder-color($color: white, $font-weight: 500) {
    color: $color;
    font-weight: $font-weight;
}

@mixin appearance($value: none) {
  appearance: $value;
  -webkit-appearance: $value;
  -moz-appearance: $value;
  -o-appearance: $value;
  ::-ms-expand {
    display: none;  // Need this to hide default select in IE10
  }
}

@mixin border-element($right: -17px, $top: 28px) {
  content: "";
  position: absolute;
  height: 1px;
  border-bottom: 1px solid $grey-05;
  width: 33px;
  right: $right;
  top: $top;
  transform: rotate(90deg);
  z-index: 1;
}

@mixin multi-line-ellipsis($max-height: 4.5em) {
  .multi-line-text {
    font-size: 13px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-height: $max-height;
    margin-right: -10px;
    padding-right: 10px;
    word-break: break-word;

    &:before {
      content: "\2026\0020";
      position: absolute;
      right: 0;
      bottom: 0;
    }

    &:after {
      content: '';
      position: absolute;
      right: 0;
      width: 1em;
      height: 1em;
      margin-top: 0.2em;
      background: white;
    }
  }
}

@mixin error-page-styles() {
   h1.error-main-title {
    color: var(--brand-primary-color);
    border-bottom: 3px solid var(--brand-primary-color);
    padding-bottom: 10px;
    font-weight: 600;
  }
  h1 {
    margin-bottom: 40px;
    font-size: 3.5rem;
    text-align: center;
  }
  .navigation-section {
    font-size: 14px;
  }
  a {
    margin: 0 5px;
    color: var(--brand-primary-color);
  }
}
